package com.linkstec.classload;
class SingleTon {
	private static SingleTon singleTon = new SingleTon();
	public static int count1;
	public static int count2 = 0;
	
	private SingleTon() {
		count1 ++;
		count2 ++;
	}
	public static SingleTon getSingleTon() {
		return singleTon;
	}
}
public class ClassLoadTest {

	@SuppressWarnings("static-access")
	public static void main(String[] args) {
		SingleTon singleTon = SingleTon.getSingleTon();
		System.out.println("count1=" + singleTon.count1);
		System.out.println("count2=" + singleTon.count2);
	}
}
